<template>
  <div class="datas">
      <div class="Illustration1">
        <div class="Illustration_png"></div>
      </div>
      <div class="Where_to">
        <p class="Where_to_p">Let's fly</p>
        <p class="Where_to_p2">to Anyplace.</p>
      </div>
      <div class="Small-plane">
        <div class="plane-s"></div>
      </div>
      <div class="sun-s">
        <div class="sun"></div>
      </div>
      <div class="query_navigation_div">
        <div class="query_navigation">
          <el-menu active-text-color="#ffd04b" background-color="#545c64" class="el-menu-vertical-demo"
            :default-active="routing_status" text-color="#fff" router>
            <el-menu-item index="/homes/datas_tabs" style="padding-left: 25px;">机票查询</el-menu-item>
            <el-menu-item index="/homes/flightDynamics" style="padding-left:25px;">航班动态</el-menu-item>
            <el-menu-item index="/homes/multipass" style="padding-left:25px;">多程查询</el-menu-item>
          </el-menu>
        </div>
        <div class="query_router">
          <router-view></router-view>
        </div>
      </div>

      <div class="carouselBox">
        <carousel></carousel>
      </div>
      <!---->
      <div class="sfs">
        <!-- 每个航空公司机票 -->
        <company></company>
      </div>
      <div class="backimg">
      </div>
      <div class="details">
        <div class="detailsmsg">
          <div class="anxinding">
            <img src="../../assets/安心定.png" alt="" style="width:252px;height:42px;margin-left:15px">
            <ul>
              <li>
                <img src="https://pages.c-ctrip.com/flight_h5/online/protection/protection_xingcheng@1.5x.png"
                  alt="行程保障">
                行程保障
              </li>
              <li>
                <img src="https://pages.c-ctrip.com/flight_h5/online/protection/protection_jiage@1.5x.png" alt="价格保障">
                价格保障
              </li>
              <li>
                <img src="https://pages.c-ctrip.com/flight_h5/online/protection/protection_anxin@1.5x.png"
                  alt="安心1 + 1">
                贴心服务
              </li>
              <li>
                <img src="https://pages.c-ctrip.com/flight_h5/online/protection/protection_kefu@1.5x.png"
                  alt="7*24小时客服">
                7*24小时客服
              </li>
            </ul>
          </div>
          <el-divider />
        </div>
    </div>
  </div>


</template>

<script setup>
import { ref,getCurrentInstance, reactive } from 'vue'
import { useRouter, useRoute } from "vue-router";
import company from "./company/Company.vue";
import carousel from "./carousel/carousel.vue"

const { proxy } = getCurrentInstance();
const router = useRouter();
const route = useRoute();
const routing_status = ref(router.currentRoute.value.fullPath)

</script>

<style lang="less" scoped>

.datas {
  width: 100%;
  height: 100%;
  position:absolute;
  margin: auto;
  transform: translate(0%, 0%);
}
// 插画
.Illustration1{
  width: 36%;
  height: 36%;
  position:absolute;
  // box-shadow: var(--el-box-shadow-dark);
  transform: translate(158%, 0%);
}
.Illustration_png{
  width: 100%;
  height: 100%;
  background: url("../../assets/source_material/插画1.png") center center repeat;
  background-size: 100% 100%;
}
.sun-s{
  width: 160px;
  height: 160px;
  position:absolute;
  transform: translate(40%, 10%);
}
.sun{
  width: 100%;
  height: 88%;
  background: url("../../assets/logins/风车.png") center center repeat;
  background-size: 100% 100%;
}
.Small-plane{
  width: 140px;
  height: 100px;
  position:absolute;
  transform: translate(480%, 40%);
}
.plane-s{
  width: 100%;
  height: 100%;
  background: url("../../assets/source_material/小飞机2.png") center center repeat;
  background-size: 100% 100%;
}
// 文字
.Where_to{
  width: 40%;
  height: 14%;
  position:absolute;
  transform: translate(40%, 120%);
  // box-shadow: var(--el-box-shadow-dark);
}
.Where_to_p{
  font-size: 40px;
  font-family: "Microsoft YaHei";
  font-weight: bold;
}
.Where_to_p2{
  margin-top: 10px;
  margin-left: 120px;
  font-size: 40px;
  font-family: "Microsoft YaHei";
  font-weight: bold;
}
.query_navigation_div{
  width: 87%;
  height: 25%;
  z-index: 1999;
  // box-shadow: var(--el-box-shadow-dark);
  transform: translate(0%, 140%);
  margin: auto;
}
.query_navigation{
  width: 8%;
  height: 100.5%;
  transform: translate(0%, 0.8%);
}
.query_router{
    width: 92%;
    height: 100%;
    // margin: auto;
    float: right;
    transform: translate(0%, -100%);
}
// 特价机票

:deep(.el-menu){
    --el-menu-item-height: 56px;
    --el-menu-item-font-size: var(--el-font-size-base);
    --el-menu-item-hover-fill: var(--el-color-primary-light-9);
    --el-menu-border-color: var(--el-border-color);
    border-right: solid 0px var(--el-menu-border-color);
    list-style: none;
    position: relative;
    margin: 0;
    padding-top: 13px;
    background-color: rgb(10,22,46);
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border-radius: 20px 0px 0px 20px;
    font-family: "Microsoft YaHei";
}
:deep(.el-menu-item) {
    border-radius: 20px;
}
.carouselBox{
  width: 1335px;
  height: 400px;
  // background-color: red;
  position: absolute;
  top: 535px;
  margin-left:100px ;
  z-index: -2;
}
.sfs{
  width: 88%;
  height: 760px;
  z-index: -1;
  margin-top: 760px;
  margin-left: 100px;
  // background-color: red;
}
.backimg{
  width: 1360px;
  height: 500px;
  // background-color: red;
  // position: absolute; 
  background-image: url("../../assets/3.jpg");
  background-size:100% 85%;
  background-repeat: no-repeat;
  overflow: auto;
  background-attachment: fixed;
  position: absolute;
  left: 100px;
}
.details{
  width: 1360px;
  height: 540px;
  background-color: #eef1f6;;
  margin-top: 100px;
  margin-left: 100px;
  position: relative;
  z-index: -1;
}
.detailsmsg{
  width: 100%;
  height: 120px;
  // background-color: red;
  position: absolute;
  bottom: 0px;
}
.anxinding {
  height: 80px;
  display: flex;
  // border: 1px #999 solid;
  
}
.anxinding *{
  margin-top: 20px;
}
.anxinding ul li{
  width: 100px;
  margin-left:165px;
  margin-top: -1px;
  list-style: none;
  float: left;
  line-height: 3;
  text-align: center;
  cursor:default;
  color: #999;
}
.anxinding ul li:hover{
  color: #409EFF;
}
.anxinding ul li img{
    position: absolute;
    top: 11px;
    margin-left: -28px;
}


</style>